<template>
  <div class="empty-wrap">
    <NoData class="svg-icon"></NoData>
    <span class="empty-tips">{{ tips }}</span>
  </div>
</template>

<script setup lang="ts">
import NoData from '@/icons/course/no-data.svg?skipsvgo';

interface IProps {
  tips?: string;
}

withDefaults(defineProps<IProps>(), {
  tips: '暂无数据',
});
</script>

<style lang="less" scoped>
.empty-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-tips {
  line-height: 22px;
  color: #02051440;
}

.svg-icon {
  width: 120px;
  height: 90px;
}
</style>
